{extend name="public/base" /}
{block name="title"}评论 - {cms:config key="site_name" /}{/block}
{block name="body"}
	<div class="container-wrap">
		<div class="container container-message container-details container-comment">
				<div class="contar-wrap">

					{article:view aid="aid" id='article'}
					<div class="item">
						<div class="item-box  layer-photos-demo1 layer-photos-demo">
							<h3><a href="">{$article.title}</a></h3>
							<h5>作者 :  <span >{$article.user.nickname}</span>发布于：<span>{$article.create_time}</span></h5>
							<article>
								{$article.description|raw}
							</article>
							<img src="{$article.thumbImage.full_thumb_image_url}" alt="">
							<div class="count layui-clear">
								<span class="pull-left">阅读 <em>{$article.read_count}</em></span>
								<span class="pull-right like"><i class="layui-icon layui-icon-praise"></i><em>999</em></span>
							</div>
						</div>
					</div>
					<form class="layui-form" action="{:url('cms/Comment/create')}" method="post">
						<div class="layui-form-item layui-form-text">
							<textarea name="content" class="layui-textarea"  style="resize:none" placeholder="写点什么啊" required></textarea>
						</div>
						<div class="btnbox">
							<input type="hidden" name="aid" value="{$aid}">
							<button type="submit" class="layui-btn" id="sure">提交</button>
						</div>
					</form>
					{/article:view}

				</div>
		</div>
	</div>
{/block}
{block name="js"}
	<script id="LAY-msg-tpl" type="text/html">
		<div class="info-box">
			<div class="info-item">
				<img class="info-img" src="{{ d.avatar }}" alt="">
				<div class="info-text">
					<p class="title">
					  <span class="name">{{ d.username }}</span>
					  <span class="info-img">
						<i class="layui-icon layui-icon-praise"></i>
						{{ d.praise }}
						</span>
					</p>
					<p class="info-intr">
						{{ d.content }}
					</p>
				</div>
			</div>
		</div>
	</script>
{/block}